import { getUrlTemplateId } from '@/utils/minxin';
export default [
  {
    path: '/edit/:id',
    name: 'edit',
    
    component: () => import('@/layouts/layouts.vue'),
    redirect: `/edit/${getUrlTemplateId()}/home`,
    // component: () => import('@/pages/edit/index.vue'),
    meta: { keepAlive: false, title: '首页', isHome: true, isFooter: true },
    children: [
      {
        path: 'square',
        name: 'templateSquare',
        component: () => import('@/pages/square/square.vue'),
        meta: { 
          title: '模版广场', 
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: false,
        },
      }, 
      {
        path: 'home',
        name: 'templateedit',
        component: () => import('@/pages/edit/index.vue'),
        meta: {
          cid:0,
          title: '编辑展览',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: false,
        },
      }, 
 
      {
        path: 'exhibit',
        name: 'templateExhibit',
        component: () => import('@/pages/public/exhibit/index.vue'),
        meta: {
          cid:1,
          title: '展品图库',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: false,
        },
      },
      {
        path: 'cultural',
        name: 'templateCultural',
        component: () => import('@/pages/public/Cultural/index.vue'),
        meta: {
          cid:4,
          title: '文创商品',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: false,
        },
      },
      {
        path: 'copyright',
        name: 'templateCopyright',
        component: () => import('@/pages/public/copyright/index.vue'),
        meta: {
          cid:5,
          title: '版权声明',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: false,
        },
      },
      {
        path: 'researches',
        name: 'templateResearches',
        component: () => import('@/pages/public/researches/index.vue'),
        meta: {
          cid:3,
          title: '学术研究',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: false,
        },
      },
      {
        path: 'research',
        name: 'templateresearch',
        component: () => import('@/pages/public/research/index.vue'),
        meta: {
          title: '学术研究详情',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: false,
        }, 
      },
      {
        path: 'message',
        name: 'templateMessage',
        component: () => import('@/pages/public/message/index.vue'),
        meta: {
          cid:2,
          title: '留言板',
          hidden: true,
          hiddenBreadcrumb: true, 
          loopType: false,
        },
      },
      {
        path: 'team',
        name: 'templateTeam',
        component: () => import('@/pages/public/team/index.vue'),
        meta: {
          cid:6,
          title: '策展团队',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: false,
        },  
      }, 
    ],  
  }, 
  { 
    path: '/exhibition/:id', 
    name: 'exhibition',
    component: () => import('@/pages/preview/index.vue'),
    redirect: `/exhibition/${getUrlTemplateId()}/home`,
    // component: () => import('@/pages/edit/index.vue'),
    meta: { keepAlive: false, title: '首页', isHome: true, isFooter: true },
    children: [
      {
        path: 'home',
        name: 'exhibitionHome',
        component: () => import('@/pages/edit/index.vue'),
        meta: { 
          cid:0,
          title: '展览',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: true,
        },
      }, 
      {
        path: 'exhibit',
        name: 'templateExhibitLoop',
        component: () => import('@/pages/public/exhibit/index.vue'),
        meta: {
          cid:1,
          title: '展品图库',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: true,
        },
      },
      {
        path: 'cultural',
        name: 'templateCulturalLoop',
        component: () => import('@/pages/public/Cultural/index.vue'),
        meta: {
          cid:4,
          title: '文创商品', 
          hidden: true, 
          hiddenBreadcrumb: true, 
          loopType: true,
        },
      },
      {
        path: 'copyright',
        name: 'templateCopyrightLoop',
        component: () => import('@/pages/public/copyright/index.vue'),
        meta: {
          cid:5,
          title: '版权声明',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: true,
        },
      },
      {
        path: 'researches',
        name: 'templateResearchesLoop',
        component: () => import('@/pages/public/researches/index.vue'),
        meta: {
          cid:3,
          title: '学术研究',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: true,
        },
      },
      {   
        path: 'research',
        name: 'templateresearchLoop',
        component: () => import('@/pages/public/research/index.vue'),
        meta: {
          title: '学术研究详情',
          hidden: true, 
          hiddenBreadcrumb: true, 
          loopType: true,
        },
      },
      {
        path: 'message',
        name: 'templateMessageLoop',
        component: () => import('@/pages/public/message/index.vue'),
        meta: {
          cid:2,
          title: '留言板', 
          hidden: true,
          hiddenBreadcrumb: true, 
          loopType: true,
        }, 
      },
      {
        path: 'team',
        name: 'templateTeamLoop',
        component: () => import('@/pages/public/team/index.vue'),
        meta: {
          cid:6,
          title: '策展团队',
          hidden: true,
          hiddenBreadcrumb: true,
          loopType: true,
        },
      },
    ],
  },
];
